﻿using System;
using System.IO;
using yacomp;
using yacomp.os;

namespace ConsoleApp1
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello, World!");
            var f2 = new YacompZip();
            var disk2 = f2.GetStorage();

            var file = File.Open("ConsoleApp1.exe", FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
            var d3 = disk2.AddFilebyPath("adsf/asdf/asdf/a.exe", file);

            using (var x = File.Create("a.zip"))
                f2.ToStream(x);
            using (var x = File.Open("a.zip", FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
            {
                using (var f3 = new YacompZip(x, true))
                {

                }
                ;
            }
        }
    }
}
